set (libq65_FSRCS
# Modules come first:

# Non-module Fortran routines:
  astro.f90
  astro0.f90
  astrosub.f90
  chkstat.f90
  dcoord.f90
  decode0.f90
  dot.f90
  fchisq0.f90
  fftbig.f90
  ftninit.f90
#  ftnquit.f90
  geocentric.f90
  getcand2.f90
  grid2deg.f90
  indexx.f90
  lorentzian.f90
  moon2.f90
  moondop.f90
  q65b.f90
  q65c.f90
  q65_sync.f90
  qmapa.f90
  read_qm.f90
  recvpkt.f90
  save_qm.f90
  sun.f90
  symspec.f90
  timf2.f90
  tm2.f90
  toxyz.f90
  zaptx.f90

  f77_wisdom.f
  )

#set (libq65_CXXSRCS
#  ipcomm.cpp
#  )

set (libq65_C_and_CXXSRCS
  ${libq65_CSRCS}
  ${libq65_CXXSRCS}
  )
set_property (SOURCE ${libq65_C_and_CXXSRCS} APPEND_STRING PROPERTY COMPILE_FLAGS " -include wsjtx_config.h")
set_property (SOURCE ${libq65_C_and_CXXSRCS} APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/wsjtx_config.h)


#
# build our targets
#
add_library (qmap_impl STATIC ${libq65_FSRCS} ${libq65_CSRCS} ${libq65_CXXSRCS})
target_link_libraries (qmap_impl wsjt_fort wsjt_cxx Qt5::Core)

